/*
 * Copyright 2011 PA Consulting Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.prodeagle.java;

public interface ProdEagleConstants {
	/**
	 * The datastore and memcache namespace to store all data against
	 */
	public static final String NAMESPACE = "prodeagle";
	
	/**
	 * Parameter to check if the request is a production call
	 */
	public static final String PRODUCTION_CALL = "production_call";
	
	/**
	 * Number of values to store in MemCache to help checking for
	 * lost data metrics
	 */
	public static final Integer EXPECTED_MEMCACHE_SERVERS = 1024;
	
	/**
	 * Maximum distance to look back through Memcache slots
	 * 1000 milliseconds * 60 seconds * 60 minutes (1 hour)
	 */
	public static final Integer MAX_LOOK_BACK = 60 * 60 * 1000;
	
	/**
	 * The minimum size of each time slot (60 seconds)
	 */
	public static final int MIN_SLOT_SIZE = 1000 * 60;
}
